<layout name="seo"/>
<title>{$ad.title} {$ad.des}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{$ad.title}" />
<meta name="keywords" content="{$ad.key}" />

<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="shortcut icon" href="__ROOT__/public/images/logo.png">

<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,700,900' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:300,400,700" rel="stylesheet">

<!-- Animate.css -->
<link rel="stylesheet" href="__ROOT__/public/BLADE/css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="__ROOT__/public/BLADE/css/icomoon.css">
<!-- Bootstrap  -->
<link rel="stylesheet" href="__ROOT__/public/BLADE/css/bootstrap.css">
<!-- Superfish -->
<link rel="stylesheet" href="__ROOT__/public/BLADE/css/superfish.css">
<!-- Flexslider  -->
<link rel="stylesheet" href="__ROOT__/public/BLADE/css/flexslider.css">

<link rel="stylesheet" href="__ROOT__/public/BLADE/css/style.css">

<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Modernizr JS -->
<script src="__ROOT__/public/BLADE/js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="__ROOT__/public/BLADE/js/respond.min.js"></script>
<![endif]-->

</head>
<body>
<style>
    *{
        font-family: 微软雅黑;
    }
</style>
<div style="width: 100%;height: 5vh; background: #f9f9f9" >
    <div style="float: left; margin-top: -1vh;">
        <ul  class="nav pull-right" id="main-menu-user">
            <if condition="isset($_SESSION['user'])==false ">
                <div style="line-height: 6.5vh;margin-left: 80vw;">
                    <li style="float: left;margin-right: 0.5vw;"><a href="{:leuu('user/login/index')}">登陆</a></li>
                    <li  style="float: left;margin-right: 0.5vw;">|</li>
                    <li style="float: left;margin-right: 0.5vw;"><a href="{:leuu('user/register/index')}">注册</a></li>
                    <li  style="float: left;margin-right: 0.5vw;">|</li>
                    <li style="float: left;margin-right: 0.5vw;"><a href="{:leuu('face/index/reful')}">服务协议</a></li>
                    <li  style="float: left;margin-right: 0.5vw;">|</li>
                    <li style="float: left"><a href="{:leuu('face/index/com')}">公司简介</a></li>
                </div>
                <!--<li class="dropdown user offline">-->
                <!--<a class=" user"  href="#">-->
                <!--请登录<b class="caret"></b>-->
                <!--</a>-->
                <!--<a href="{:leuu('user/login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a>-->
                <!--<a href="{:leuu('user/register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a>-->
                <!--<ul class="dropdown-menu pull-right">-->
                <!--<li><a href="{:U('Face/index/send')}"><i class="fa fa-user"></i> &nbsp;免费发布广告</a></li>-->
                <!--<li class="divider"></li>-->
                <!--<li><a href="{:U('api/oauth/login',array('type'=>'sina'))}"><i class="fa fa-weibo"></i> &nbsp;微博登录</a></li>-->
                <!--<li><a href="{:U('api/oauth/login',array('type'=>'qq'))}"><i class="fa fa-qq"></i> &nbsp;QQ登录</a></li>-->
                <!--<li><a href="{:leuu('user/login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a></li>-->
                <!--<li class="divider"></li>-->
                <!--<li><a href="{:leuu('user/register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a></li>-->
                <!--</ul>-->
                <!--</li>-->
                <else /> <li class="dropdown user login">
                <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
                    <img style="width: 2vw;" src="__ROOT__/data/upload/<?php echo $_SESSION['user']['avatar'] ?>" class="headicon"/>
                    <span class="user-nicename"></span><b class="caret"></b></a>
                <ul class="dropdown-menu pull-right">
                    <li><a href="{:leuu('Face/index/send')}"><i class="fa fa-user"></i> &nbsp;免费发布广告</a></li>
                    <li class="divider"></li>
                    <li><a href="{:leuu('user/center/index')}"><i class="fa fa-user"></i> &nbsp;个人中心</a></li>
                    <li class="divider"></li>
                    <li><a href="{:leuu('user/index/logout')}"><i class="fa fa-sign-out"></i> &nbsp;退出</a></li>
                </ul>
            </li>
            </if>

        </ul>
    </div>
</div>
<header id="fh5co-header" role="banner">
    <div class="container text-center">
        <div id="fh5co-logo">
            <a href="{:leuu('Face/index/index')}" style="float: left; width: 10vw;height: 8vh;margin-top: -1.5vh;"><img src="__ROOT__/data/upload/{$web.logo}"></a>
            <div style="margin: 0 auto ">
                <form action="{:leuu('Face/index/ser')}" method="post">
                    <input type="text" required name="ser" id="" style="width: 28vw;height: 5vh;" placeholder="请输入广告标题\地区名称">
                    <input type="submit" class="sub" value="查找">
                </form>
                <style>
                    .sub{
                        padding: 1.2vh 1.5vw;
                        color: #fff;
                        text-decoration: none;
                        text-shadow: none;
                        background-image: none;
                        border: 0;
                        background: #3bbdf5;
                    }
                </style>
            </div>
        </div>
        <nav>
            <ul class="top">
                <!-- Split button -->
                <!-- Split button -->
                <div class="bs-example">
                    <ul class="nav nav-pills" role="tablist">
                        <li role="presentation"><a href="{:leuu('Face/index/index')}">主页</a></li>
                        <volist name="city" id="vo">
                            <li role="presentation" class="dropdown">
                                <a id="drop4" href="{:leuu('Face/index/other',['id'=>$vo['id']])}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                    {$vo.name}
                                    <span class="caret"></span>
                                </a>
                                <ul style="width: 30vw;" id="menu1" class="dropdown-menu" aria-labelledby="drop4">
                                    <volist name="vo['des']" id="child">
                                        <li style="float: left;"><a href="{:leuu('Face/index/other',['id'=>$child['id']])}">{$child['name']}</a></li>
                                    </volist>
                                </ul>
                            </li>
                        </volist>
                    </ul> <!-- /pills -->
                </div>
            </ul>
        </nav>
    </div>
</header>

<div class="page-content">
    <h1 class="mb0">{$ad.title}</h1>
    <div class="meta" style="font-family: 微软雅黑"><span><a href="#">发布者：{$ad.maker}</a>, &nbsp;<a href="#">地区：{$ad.city.name}</a>,&nbsp;<a href="#">浏览量：{$ad.read}</a>,&nbsp;<a href="#">发布时间：{$ad.time}</a></span></div>
    <p><img src="__ROOT__/data/upload/{$ad.thumb}" alt="Free HTML5 by FreeHTML5.co"></p>
    <p><?php echo htmlspecialchars_decode( $ad['content'] )?></p>
</div>
<div style="margin: 0 auto;width: 80%;margin: 0 auto;text-align: center;font-size: 40px; color: darkred">
    猜你兴趣
</div>
<div class="container-fluid">
    <div id="fh5co-projects-feed" class="fh5co-projects-feed clearfix masonry">
        <volist name="other" id="vo">
        <div class="fh5co-project masonry-brick">
            <a href="{:leuu('Face/index/content',['id'=>$vo['id']])}">
                <img src="__ROOT__/data/upload/{$vo.thumb}" style="max-height: 20vh;max-width: 13vw;" alt="Free HTML5 by FreeHTML5.co">
                <h2>{$vo.title}</h2>

                <h2 style="font-family: 微软雅黑;font-size: 10px;">地区：{$vo.city.name}</h2>
                <h2 style="font-family: 微软雅黑;font-size: 10px;">发布时间：{$vo.time}</h2>
            </a>
        </div>
        </volist>
    </div>
    <!--END .fh5co-projects-feed-->
</div>